package homework.ch11_13.p3;

public class CourseTest {
    public CourseTest() {
    }
    public static void main(String[] args){
        Faculty teachergu=new Faculty(40,"teachergu","gu@.com","U1900","professor");
        Faculty teacherma=new Faculty(43,"teacherma","ma@.com","U1901","professor");
        Course java=new Course("java",teachergu);
        Course python=new Course("python",teacherma);
        Student s1=new Student("s1",18,2000,"Computer science","cs1901");
        Student s2=new Student("s2",18,2001,"Computer science","cs1901");
        Student s3=new Student("s3",18,2002,"Computer science","cs1901");
        Student s4=new Student("s4",18,2003,"Computer science","cs1901");
        Student s5=new Student("s5",19,2004,"Computer science","cs1901");
        Student s6=new Student("s6",20,2005,"Computer science","cs1901");
        java.register(s1);
        java.register(s2);
        java.register(s3);
        python.register(s4);
        python.register(s5);
        python.register(s6);
        System.out.println(java);
        java.unregister(s1);
        System.out.println(java);
        Course java1=(Course)java.clone();
        System.out.println(java.equals(java1));
        System.out.println(java.getCourseName()!=java1.getCourseName());
        System.out.println(java.getTeacher()!=java1.getTeacher());
        System.out.println(java.getStudents()!=java1.getStudents());
        System.out.println(java1);
        System.out.println(python.toString());
    }
}
